package com.qianfeng.day30.service;

import com.qianfeng.day30.dao.HouseDAO;
import com.qianfeng.day30.entity.House;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class HouseService {
    @Resource
    private HouseDAO houseDAO;
    public List<House> findAll() {
        return  houseDAO.findAll();
    }

    public void save(House house) {
        houseDAO.insertSelective(house);
    }

    public List<House> findOrderBy() {
        return houseDAO.findOrderBy();
    }
}
